﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySelect.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.RelationQuery.CompanySelect"  Title="选择配送企业"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head id="Head1" runat="server">
    <title>选择采购产品</title>
    <link rel="stylesheet" type="text/css" href="../../lib/style/global.css" />

    <script type="text/javascript" language="javascript">
        function addGoodsInfo(GoodsInfo) {
            opener.insertGoodsInfo(GoodsInfo);
            window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="listsearch">
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblProduceCompany" runat="server" Text="配送企业："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtProduceCompany_PS" runat="server"></asp:TextBox>
                </td>
                <td>
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click"  CssClass="btn"/>
                </td>
            </tr>
        </table>
    </div>
    <div class="listip">
        <ul>
            <li>小提示：点击配送企业名称即可</li>
              
        </ul>
    </div>
    <asp:GridView ID="gvwGoodsInfo" runat="server" AutoGenerateColumns="False" 
        Width="580px" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex+1 %></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <a href="javascript:addGoodsInfo('<%# Eval("CompanyID") %>|<%# Eval("CompanyName") %>')">
                        <%# Eval ("CompanyName")%></a>
                </ItemTemplate>
            </asp:TemplateField>
                     </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <br />
    <div class="listctrl" style="text-align: left">
        &nbsp;
        <input id="Button1" type="button" onclick="openner=null;window.close();" value="取消选择"  class="btn" /></div>
    </form>
</body>
</html>
